package com.hungtrung.entity;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.math.Vector2;
import com.hungtrung.game.TextureManager;

public class Ro extends Entity{

	public Ro(Vector2 pos, Vector2 direction) {
		super(TextureManager.RO, pos, direction);
	}

	@Override
	public void update() {				
		if(Gdx.input.isKeyPressed(Keys.LEFT)){
			pos.add(direction);
			setPosition(-300, 0);			
		}
		if(Gdx.input.isKeyPressed(Keys.RIGHT)){
			pos.add(direction);
			setPosition(300, 0);
		}
	}
	
	
}
